<?php

Loader::using("ext::libs::inscripcionesGenericas::QuestionBasedUIControlFilter");

class BasicDataSetUIControlFilter extends QuestionBasedUIControlFilter {

    public function &filterControl(UIControl &$newInstance) {
        if ($newInstance instanceof DataSet) {
            $params = $this->getDecodedParams();
            if (isset($params->static)) {
                $newInstance->setOptions(array_merge($newInstance->getOptions(), array_combine($params->static, $params->static)));
            }
        }

        return $newInstance;
    }

}

?>